package com.example.spikeRuota;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class SpikeRuotaActivity extends Activity {
    /** Called when the activity is first created. */
	
	WheelQuarter territorio;
	WheelQuarter prodotti;
	WheelQuarter persone;
	WheelQuarter cucina;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        territorio = (WheelQuarter) findViewById(R.id.nw);
        prodotti = (WheelQuarter) findViewById(R.id.se);
        persone = (WheelQuarter) findViewById(R.id.ne);
        cucina = (WheelQuarter) findViewById(R.id.sw);
        
        territorio.setOnClickListener(new OnClickListener() {
        	public void onClick(View v) {
        		territorioCallback();
        	}
        });
        prodotti.setOnClickListener(new OnClickListener() {
        	public void onClick(View v) {
        		prodottiCallback();
        	}
        });
        persone.setOnClickListener(new OnClickListener() {
        	public void onClick(View v) {
        		personeCallback();
        	}
        });
        cucina.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				cucinaCallback();
			}
		});
        
    }
	
	private void territorioCallback() {
		Intent intent = new Intent(this, WheelInfo.class);
		startActivity(intent);
	}
	private void prodottiCallback() {
		Intent intent = new Intent(this, WheelInfo.class);
		startActivity(intent);
	}
	private void personeCallback() {
		Intent intent = new Intent(this, WheelInfo.class);
		startActivity(intent);
	}
	private void cucinaCallback() {
		Intent intent = new Intent(this, WheelInfo.class);
		startActivity(intent);
	}
}